require 'rails/generators'

class ServiceGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../../templates/', __FILE__)

  def create_service_file
    template 'service_template.rb', "app/services/#{name.downcase}_service.rb"
  end
end
